var app = getApp();

Page({
    data: {
        hasSlide: !1,
        indicatorDots: !1,
        autoplay: !0,
        interval: 5e3,
        duration: 1e3,
        circular: !0,
        open_web: !1,
        open_mqrcode: !1
    },
    onLoad: function(a) {
        var t = this;
        app.util.footer(this), app.util.request({
            url: "entry/wxapp/GetChainBanner",
            data: {
                m: "bbyscm_card"
            },
            success: function(a) {
                0 == a.data.errno && t.setData({
                    imgUrls: a.data.data,
                    hasSlide: !0
                });
            }
        }), app.util.request({
            url: "entry/wxapp/ChainSetup",
            data: {
                m: "bbyscm_card"
            },
            success: function(a) {
                0 == a.data.errno && (t.setData({
                    chain: a.data.data
                }), wx.setNavigationBarTitle({
                    title: a.data.data.title
                }));
            }
        }), app.util.request({
            url: "entry/wxapp/GetChains",
            data: {
                m: "bbyscm_card"
            },
            success: function(a) {
                0 == a.data.errno && t.setData({
                    chains: a.data.data
                });
            }
        });
    },
    onReady: function() {},
    onNavigateTaptb: function(a) {
        var t = a.currentTarget.dataset.akey, e = a.currentTarget.dataset.wx_appid, n = a.currentTarget.dataset.wx_path, r = a.currentTarget.dataset.mqrcode;
        0 == t ? e && wx.navigateToMiniProgram({
            appId: e,
            path: n,
            extraData: {
                foo: "bar"
            },
            envVersion: "develop",
            success: function(a) {}
        }) : 1 == t ? this.setData({
            web_src: n,
            open_web: !0
        }) : 2 == t && wx.previewImage({
            current: r,
            urls: [ r ]
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});